package com.chen.deskclock.settings;

import android.annotation.SuppressLint;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;

import com.chen.deskclock.R;
import com.chen.deskclock.ScheduleManagement.StartPage1;
import com.chen.deskclock.actionbarmenu.OptionsMenuManager;

public class ScheduleManagementActivity extends AppCompatActivity {
    private OptionsMenuManager mOptionsMenuManager;
    private Button btn;
    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_schedule_management);
        btn=findViewById(R.id.start_use);
        btn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent();
                intent.setClass(ScheduleManagementActivity.this, StartPage1.class);
                startActivity(intent);
            }
        });
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish();
                return true;
        }
        return false;
    }
}